# import zlib
#
# with open('dump', 'rb') as f:
#     data1 = f.read()
#     data = list(data1)
#     v14 = 0
#     while True:
#         if (v14 - 1) <= 0x58:
#             v15 = v14 // 10
#             if v14 % 10 == 9:
#                 v16 = 0x3CA10
#                 v17 = 0x3CA10 // 10
#                 v18 = (v15 + 1) * (0x3CA10 // 10)
#                 if 0x3CA10 // 10 * v15 < v18:
#                     v19 = v17 * v15
#                     v17 -= 1
#                     data[v19] ^= v14
#                     v19 += 1
#                     while v17:
#                         v17 -= 1
#                         data[v19] ^= v14
#                         v19 += 1
#                 if v14 == 89:
#                     while v18 < v16:
#                         data[v18] ^= 0x59
#                         v18 += 1
#         else:
#             break
#         v14 += 1
#
# filebytes = bytes(data)
# with open('easy-dex.dex', 'wb') as w:
#     w.write(zlib.decompress(filebytes))
# print('decrypt finished')


import base64

m = [-120, 77, -14, -38, 17, 5, -42, 44, -32, 109, 85, 31, 24, -91, -112, -83,
     64, -83, -128, 84, 5, -94, -98, -30, 18, 70, -26, 71, 5, -99, -62, -58, 117, 29,
     -44, 6, 112, -4, 81, 84, 9, 22, -51, 95, -34, 12, 47, 77]
data = []
for i in m:
    print("%02x" % (i & 0xFF), end='')
    # 在m数组有负数需要转换成正数，base64需要(0, 256)
    data.append(i & 0xFF)
print()
print(data)

print(base64.b64encode(bytes(data)))
